package com.wanmait.recruitment.mapper;

import com.wanmait.recruitment.pojo.Resume;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResumeMapper {
    int deleteByPrimaryKey(Integer id);
    //通过简历Id查询简历
    Resume findById(Integer id);

    int insert(Resume record);

    int insertSelective(Resume record);

    Resume selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Resume record);

    int updateByPrimaryKey(Resume record);

    List<Resume> selectByUserinfoId(Integer userinfoId);

    void insertResume(Integer userinfoId, String name, Integer exId);

    int updateResumes(Resume resume, Integer id);

    Resume selectById(Integer id);

    int dataCountResume(Integer id);

    int dataCountWorkEx(Integer id);

    int dataCountItemEx(Integer id);

    int dataCountEducation(Integer id);

    int dataCountWorksShow(Integer id);

    void updateResumeName(String name, Integer id);

    int updateWorkExId(Integer count, Integer id);

    int updateWorksShowId(Integer count, Integer id);

    int updateItemExId(Integer count, Integer id);

    int updateEducationId(Integer count, Integer id);

    int updateResume(Resume resume, Integer id);

    int updateEducation(Resume resume, Integer id);

    int updateSelfIntroduction( String self, Integer id);


    int updateWorkEx(Resume resume, Integer id);

    int updateItemEx(Resume resume, Integer id);

    int updateWorksShow(Resume resume, Integer id);


    Resume selectResumeByIdAll(Integer id);

    List<Resume>selectHopeJobById(Integer id);

    List<Resume>selectWrokExById(Integer id);

    List<Resume>selectItemExById(Integer id);

    List<Resume>selectEductionById(Integer id);


}